function exp() {
	if (($('#randomtable1').length > 0) && ($('#outtable').length > 0)) {
		var myDate = new Date();
		var a = new Array();
		var year = myDate.getFullYear();
		var month = myDate.getMonth() + 1 < 10 ? "0" + (myDate.getMonth() + 1) : myDate.getMonth() + 1;
		var date = myDate.getDate() < 10 ? "0" + myDate.getDate() : myDate.getDate();
		var hour = myDate.getHours() < 10 ? "0" + myDate.getHours() : myDate.getHours();
		var min = myDate.getMinutes() < 10 ? "0" + myDate.getMinutes() : myDate.getMinutes();
		var second = myDate.getSeconds() < 10 ? "0" + myDate.getSeconds() : myDate.getSeconds();
		a.push(year)
		a.push(month)
		a.push(date)
		a.push(hour)
		a.push(min)
		a.push(second)
		console.log(a)
		tablesToExcel(['randomtable1', 'randomtable2'], ['监考', '备考'], a[0] + "年" + a[1] + "月" + a[2] + "日" + a[3] + "时" +
			a[
				4] + "分" + a[5] + "秒" + ".xls", "Excel");
	} else {
		swal("OMG!", "请添加数据!", "error");
	}
}
